<template>
  <div>
    <p>
      <router-link to="/login">跳转登录页</router-link>
    </p>
    <p>
      <router-link to="/register">跳转注册页</router-link>
    </p>
    <p>
      <router-link to="/mycenter">跳转个人中心</router-link>
    </p>
    <p><router-link to="/compile">跳转编辑资料</router-link></p>
    <p><router-link to="/myattention">跳转我的关注</router-link></p>
    <p><router-link to="/index">跳转主页</router-link></p>

    <p>
      <Main
        v-for="(item, index) in parentlist"
        :key="index"
        :parentData="item"
      ></Main>
    </p>
  </div>

</template>

<script>
import Main from "../components/Comment/Main";

export default {
  components: { Main },
  data() {
    return {
      parentlist: [],
    };
  },
  created() {
    this.$axios({
      url: "post_comment/1",
    }).then((res) => {
      console.log(res.data);
      this.parentlist = res.data.data;
    });
  },
};
</script>

<style>
</style>